package com.main.common.interfaces;

import com.main.common.configs.MessageSourceConfig;
import com.main.common.configs.LocaleResolverConfig;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 动态切换语言注解
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Import({LocaleResolverConfig.class, MessageSourceConfig.class})
@Inherited
public @interface SessionLocale {

}